package com.gsc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gsc.domain.ResponseResult;
import com.gsc.domain.dto.AddArticleDto;
import com.gsc.domain.dto.ArticleListDto;
import com.gsc.domain.entity.Article;

/**
 * @author gscstart
 * @create 2023/1/14-9:03
 */
public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult articleLists(ArticleListDto articleListDto);

    ResponseResult selectArticleById(Long id);

    ResponseResult updateArticle(AddArticleDto addArticleDto, Long id);
}
